package club.info.jpa.repository;

import club.info.jpa.pojo.Person;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PersonRepository extends JpaRepository<Person, Integer> {

    List<Person> findByAge(Integer age);

    Person findByNameAndAddress(String name, String address);

}
